#include<iostream>
#include<algorithm>
#include<cstdio>
using namespace std;

int t,n,a[200005];

int main()
{
	freopen("color.in","r",stdin);
	freopen("color.out","w",stdout);
	cin>>t;
	while(t--)
	{
		cin>>n;
		for(int i=1;i<=n;i++)
		{
			cin>>a[i];
		}
		int preb,prer=1;
		
	}
	return 0;
}